home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-06 | 3.2 KB | 84 lines | [TEXT/ALFA] |
-
- ***************************************************************
-
- About "f2c.tcl" and integrating Mac F2C, CodeWarrior, and Alpha
-
- ***************************************************************
-
-
- The accompanying "f2c.tcl" file is Tool Command Language (Tcl) code
- intended for use the Pete Keleher's Alpha text editor. It was developed by
- Klaus Thermann and included with his permission. If you have any questions
- or bug reports, please send them to:
-
- klaus@gaga.maschinenbau.uni-dortmund.de
-
- When loaded into Alpha, this package will create a new Alpha menu that
- enables you to control both Mac F2C and CodeWarrior from Alpha. This makes
- it very easy to manage FORTRAN-based projects using Mac F2C. Additional
- instructions appear as comments within "f2c.tcl"
-
- The commands provided by "f2c.tcl" are:
-
- Translate F To C
- Translates frontmost window from f to c using current
- settings of MAC F2C, does nothing if frontmost window
- is not *.f. If the window is dirty, it is saved before
- translation.
-
- Open Project Closes current project, offers file dialog to select a
- project and tells codewarrior to open it. The name of
- the selected project appears as (always) deactived menu
- item. Builds the list and menu items projectFiles and
- otherFiles (see below)
-
- Get Project Assumes that a code warrior project is open and gets
- its name and files. If no project exists: file dialog
- as above
-
- Switch To Project
- Select project from list. The list f2cProjects is saved
- between sessions (addDef) and extended when a project is
- opened not contained in the list.
- Remove From List ... offers a dialog to remove files
- from f2cProjects.
-
- Project Files Is a list of *.f files in the project folder which
- have corresponding *.c files in the codewarrior project.
- These files are edited (or simply brought to the front)
- when selected.
-
- Other Files Is a (possibly empty) list of *.f files in the project
- folder having no *.c counterparts in the project.
- Editing as above.
-
- Run Saves all modified files and translates from f to c,
- followed by CODE WARRIOR run.
- When f2c detects an error the process is stopped and the
- *.f file, where the error was detected, brought to front.
-
- Make Saves all modified files and translates from f to c,
- followed by CODE WARRIOR make.
- When f2c detects an error the process is stopped and the
- *.f file, where the error was detected, brought to front.
-
- Add File The *.c file corresponding to the frontmost *.f file is
- added to the project (if the *.c and *.f are in the
- project folder, returns otherwise)
-
- Remove File The *.c file corresponding to the frontmost *.f file is
- removed from the project (if the *.c and *.f are in the
- project folder, returns otherwise).
-
- F to C & Add Files...
- Offers a dialog to pick files from list otherFiles.
- The selected files are translated from f to c and added
- to the cw project.
- When f2c detects an error the process is stopped and the
- *.f file, where the error was detected, brought to front.
-
- Remove Files...
- Offers a dialog to pick files from list projectFiles.
- The selected files are removed from the cw project.
-
-